package oms.dao;

import java.util.Collection;
import java.util.List;

import oms.entities.Order;
import oms.entities.User;

public interface OrderDAO {
	
		public void createOrder(Order order);
	
		public void saveOrder(Long orderId);
	
		public void updateOrder(Long orderId);
		
		public void deleteOrder(Long orderId);
	
		public Order getOrderById(Long orderId);
		
		// Do we need this?
		public Order getOrderByName(String orderName);
		public Order getOrderByStatus(byte status);
		public Order getOrderByAssignee(User user);
		//
	
		public List<Order> ordersList();
	
		@SuppressWarnings("rawtypes")
		public Collection getOrdersByUser(User user);

}
